import VueRouter from 'vue-router'

import home from './components/tabbar/homeContainer.vue'
import find from './components/tabbar/findContainer.vue'
import order from './components/tabbar/orderContainer.vue'
import mine from './components/tabbar/mineContainer.vue'
import newsList from './components/news/newsList.vue'
import newsInfo from './components/news/newsInfo.vue'
import photoList from './components/photos/photoList.vue'
import photoInfo from './components/photos/photoInfo.vue'
import goodsList from './components/goods/goodsList.vue'
import goodsInfo from './components/goods/goodsInfo.vue'

var router = new VueRouter({

 routes: [
   { path:'/', redirect: '/home'},
   { path:'/home', component: home},
   { path:'/find', component: find },
   { path:'/order', component: order },
   { path:'/mine', component: mine },
   { path:'/home/newsList', component: newsList },
   { path:'/home/newsInfo/:id', component: newsInfo },
   { path:'/home/photoList',component: photoList},
   { path:'/home/photoInfo/:id',component: photoInfo},
   { path:'/home/goodsList',component: goodsList},
   { path:'/home/goodInfo/:id',component: goodsInfo, name:'goodsInfo'},
],
linkActiveClass: 'mui-active',

})

export default router